/**
 * 
 */
package com.swg.cocobox.filetransfer.command;

import java.io.IOException;

import com.swg.cocobox.AbstractEventProcessor;
import com.swg.cocobox.filetransfer.FileServer;

/**
 * @author satriaprayoga
 *
 */
public class CommandEventProcessor extends AbstractEventProcessor<CommandEvent>{

	@Override
	public void onEvent(CommandEvent event) {
		FileServer server=(FileServer)event.getSource();
		Command command=event.getCommand();
		try {
			server.reply(event.getChannel(), command);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
